package com.dyl.t03_function_interfase;

import java.util.function.Consumer;

public class ConsumerX {
    public static void main(String[] args) {
        method(System.out::println, 3);
    }

    public static void method(Consumer<Integer> consumer, Integer i){
        consumer.accept(i);
    }
}
